package org.qydjk.console.service;

import org.qydjk.common.pojo.user.UserComment;
import org.qydjk.common.service.IBaseService;
import org.qydjk.common.shiro.vo.ShiroUser;
import org.qydjk.common.vo.EasyUIResponse;
import org.qydjk.console.vo.ProductExtendsBean;

import javax.servlet.http.HttpServletRequest;

/**
 * 产品Service
 * Created by Edward_yang on 2017/12/25 0025.
 */
public interface IProductService extends IBaseService{
    /***
     * 添加产品信息
     * @author Edward_yang
     * @uptime 2017-12-25
     * @param productExtendsBean
     * @param shiroUser
     * @param request
     * @return
     * @throws Exception
     */
    public Boolean addProductALlInfo(ProductExtendsBean productExtendsBean, ShiroUser shiroUser, HttpServletRequest request) throws  Exception;

    /***
     * 修改产品列表
     * @author Edward_yang
     * @uptime 2017-12-25
     * @param productExtendsBean
     * @param shiroUser
     * @param request
     * @return
     * @throws Exception
     */
    public Boolean updateProductALlInfo(ProductExtendsBean productExtendsBean, ShiroUser shiroUser, HttpServletRequest request)throws Exception;

    /***
     * 待查询 分页 套餐数据显示
     * @author Edward_yang
     * @uptime 2017-12-27
     * @param page
     * @param rows
     * @param keyWord
     * @return
     * @throws Exception
     */
    public EasyUIResponse findProductAllList(Integer page,Integer rows,String keyWord)throws  Exception;

    /**
     * 添加评论
     * @param userComment
     * @param imgStr
     */
    public void saveComment(UserComment userComment, String imgStr) throws Exception;

    /**
     * 删除评论
     * @param userComment
     * @throws Exception
     */
    public void deleteComment(UserComment userComment) throws Exception;

    /**
     * 修改评论
     * @param userComment
     * @param imgStr
     * @throws Exception
     */
    public void updateComment(UserComment userComment,String imgStr) throws Exception;
}
